package com.sd.coupon;

//import com.taobao.api.ApiException;
//import com.taobao.api.DefaultTaobaoClient;
//import com.taobao.api.TaobaoClient;
//import com.taobao.api.request.TbkItemGetRequest;
//import com.taobao.api.response.TbkItemGetResponse;

public class Main {
	public static void main(String[] args) {
		
//		String appkey = "25326666";
//		String secret=	"634f92adc955a96a1d66ea2761e5ec3a";
//		String url = "http://gw.api.taobao.com/router/rest" ;
//		TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
//		TbkItemGetRequest req = new TbkItemGetRequest();
//		req.setFields("num_iid,title,pict_url,small_images,reserve_price,zk_final_price,user_type,provcity,item_url,seller_id,volume,nick");
//		req.setQ("女装");
//		req.setCat("16,18");
//		req.setItemloc("杭州");
//		req.setSort("tk_rate_des");
//		req.setIsTmall(false);
//		req.setIsOverseas(false);
//		req.setStartPrice(10L);
//		req.setEndPrice(10L);
//		req.setStartTkRate(123L);
//		req.setEndTkRate(123L);
//		req.setPlatform(1L);
//		req.setPageNo(123L);
//		req.setPageSize(20L);
////		req.set
//		TbkItemGetResponse rsp;
//		try {
//			rsp = client.execute(req);
//			System.out.println(rsp.getBody());
//		} catch (ApiException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
		
	}
}
